package com.ccnf.model.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author developer
 * @since 2018-09-08
 */
@Data
@TableName("account_record")
public class AccountRecord extends Model<AccountRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @TableId("record_id")
    private Long recordId;
    /**
     * 账户ID
     */
    @TableField("account_id")
    private Long accountId;
    /**
     * 邀请函赏金ID
     */
    @TableField("reward_id")
    private Long rewardId;
    /**
     * 收入金额
     */
    private BigDecimal income;
    /**
     * 收入描述
     */
    @TableField("income_desc")
    private String incomeDesc;
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Long createTime;

    @Override
    protected Serializable pkVal() {
        return this.recordId;
    }
}